package com.qc.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qc.sys.common.DataGridView;
import com.qc.sys.common.ResultObj;
import com.qc.sys.entity.SysUser;
import com.qc.sys.vo.UserVo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * (SysUser)表服务接口
 *
 * @author AltmanQccc
 * @since 2020-08-26 11:38:08
 */
@Service
@Transactional
public interface SysUserService extends IService<SysUser> {

    /**
     * 根据用户登录名查询用户信息
     * */
    SysUser queryUserByLoginName(String loginname);

    DataGridView queryAllUser(UserVo userVo);

    ResultObj InsertUser(SysUser user);

    ResultObj UpdateUser(SysUser user);

    Integer queryUserMaxOrderNum();

    ResultObj resetPwd(Integer id);

    void saveUserRole(Integer uid, Integer[] rids);
}